<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head th:fragment="headerFragment">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Time Frame Management System</title>
	<link href="../../../assests/css/bootstrap.css" th:href="@{/assets/css/bootstrap.css}" rel="stylesheet" />

    <meta name="description" content=""/>
    <meta name="viewport" content="width=device-width"/>
    <style>
    body {
    padding-top: 60px;
    padding-bottom: 40px;
    }
    </style>

</head>

<body>
<div th:fragment="menuFragment">
<div class="container">

    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <a class="brand" href="#">Tifragment</a>
                <div class="nav-collapse collapse">
                    <ul class="nav">
                        <li class="active"><a href="#">Home</a></li>
                        <li><a href="#about">About</a></li>
                        <li><a href="#contact">Contact</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Ideas<b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a th:href="@{/impl/idea/create}">Idea create</a></li>
                                <li><a th:href="@{/impl/idea/list}">Idea list</a></li>
                                <li><a href="#">Something else here</a></li>
                                <li class="divider"></li>
                                <li class="nav-header">Nav header</li>
                                <li><a href="#">Separated link</a></li>
                                <li><a href="#">One more separated link</a></li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">My space <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a th:href="@{/base/user/profile}">Profile</a></li>
                                <li><a th:href="@{/base/user/searchContact}">Search contacts</a></li>

                            </ul>
                        </li>
                        <li><p th:text="${userSessionComponent?.currentUser?.userName}">Some prototyping text</p></li>
                        <li th:unless="${#authorization.expression('hasRole(''ROLE_USER'')')}"><a th:href="@{/base/login}">Login</a></li>
                         <li th:if="${#authorization.expression('hasRole(''ROLE_USER'')')}"><a th:href="@{/base/logout}">Logout</a></li>

                        <li th:unless="${#authorization.expression('hasRole(''ROLE_USER'')')}"><a th:href="@{/base/public/signup}">Signup</a></li>
                    </ul>

                </div><!--/.nav-collapse -->
            </div>
        </div>
    </div>
        </div>
</div>
 <div th:fragment="footerFragment">
    <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="http://getbootstrap.com/dist/css/bootstrap.min.css"></script>

 </div>
</body>

</html>